﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Circle.Domain.Entity;

namespace Circle.Domain.Interface.Service
{
    public interface IPermissionService : IBaseCacheCrudService<PermissionOnThread>
    {
         //List<Permission> AllPermissionItems { get;}

         //PermissionOnThread GetPermission(MemberRole role, ContentThread thread, Permission permission);
         //PermissionOnThread GetPermission(Guid roleId, Guid categoryId, Guid permissionId);

        bool IsPermissionGranted(Guid roleId, string permissionName, Guid? contentThreadId = null );

    }
}
